﻿using System;
using Autodesk.Revit.DB;
using YJKPresentation.Utils;

namespace YJKCopyModel.DuctFastModel
{
	public class DuctDrawCricle
	{
		public static void CreateCircle(Autodesk.Revit.DB.Document doc, XYZ locationPt)
		{
			double num = Common.MMToFeet(600.0);
			double num2 = 0.0;
			double num3 = Math.PI*2;
			XYZ xyz = new XYZ(1.0, 0.0, 0.0);
			XYZ xyz2 = new XYZ(0.0, 1.0, 0.0);
			Arc arc = Arc.Create(locationPt, num, num2, num3, xyz, xyz2);
			DetailCurve detailCurve = doc.Create.NewDetailCurve(doc.ActiveView, arc);
			GraphicsStyle graphicsStyle = detailCurve.LineStyle as GraphicsStyle;
			graphicsStyle.GraphicsStyleCategory.LineColor = new Autodesk.Revit.DB.Color(0, byte.MaxValue, 0);
		}
	}
}
